<template>
  <div>
    use websocket
  </div>

</template>

<script setup>
import {onMounted} from "vue";
import io from 'socket.io-client';

const socket = io(`ws://127.0.0.1:3000`, {path: '/socket'});

onMounted(() => {
  socket.emit('join', '1', (res) => console.log('connect success'));
})
</script>

<style scoped>

</style>